package cn.sixmillions.wiki;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
@Slf4j
public class WikiApplication {

    public static void main(String[] args) {
        //SpringApplication.run(WikiApplication.class, args);
        SpringApplication app = new SpringApplication(WikiApplication.class);
        ConfigurableEnvironment env = app.run(args).getEnvironment();
        log.info("启动成功，接口文档地址：\thttp://127.0.0.1:{}/doc.html", env.getProperty("server.port"));
    }

}
